﻿@model Stat
@{
    ViewBag.Title = "Stat";
}

<h2>Create new Stat</h2>
@using (Html.BeginForm())
{
    <p>Stat name:</p>
    @Html.ValidationMessageFor(m => m.Name)
    @Html.EditorFor(m => m.Name)
    @Html.EditorFor(m => m.Quantities)
    @Html.ValidationMessageFor(m => m.Quantities)
    <button type="submit">Submit</button>
    <button type="submit" name="quantityButton" value="add">Add Quantity</button>
    if(ViewBag.RemoveButton == "show")
    {
        <button type="submit" name="quantityButton" value="remove">Remove Quantity</button>
    }
}
